package com.ocom.webapi.vo.xfpersonnel;

import com.ocom.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

@Data
public class XImportVo implements Serializable {
    private static final long serialVersionUID = -1078164438385246472L;

    @Excel(name = "姓名")
    private String pName;

    @Excel(name = "性别(男/女)")
    private Integer pSex;

    @Excel(name = "人员编号")
    private String pCode;

    @Excel(name = "部门名称(多级部门以”/”号隔开)")
    private String deptName;

    @Excel(name = "人员密码")
    private String pPwd;

    @Excel(name = "联系电话")
    private String pPhone;

    @Excel(name = "身份证号码")
    private String pIdentity;

    @Excel(name = "住址")
    private String pAddress;

    @Excel(name = "人脸图像地址")
    private String pPhotoUrl;

    @Excel(name = "账户类型(只能填一种)")
    private String accTypeId;

    @Excel(name = "标签(多个标签用|分隔)")
    private String perTag;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("pName", getPName())
                .append("pSex", getPSex())
                .append("pCode", getPCode())
                .append("deptName", getDeptName())
                .append("pPwd", getPPwd())
                .append("pPhone", getPPhone())
                .append("pIdentity", getPIdentity())
                .append("pAddress", getPAddress())
                .append("pPhotoUrl",getPPhotoUrl())
                .append("accTypeId",getAccTypeId())
                .append("perTag",getPerTag())
                .toString();
    }
}
